package com.liucheng;

public class liucheng5 {
	
	public void max(int a,int b){
		if((a%b)==0)
			System.out.println(a+"��"+b+"�ı���");
		else
			System.out.println(a+"����"+b+"�ı���");
	}
	public void score(int score){
		switch(score/10){
		case 10:
			System.out.println("A");
			break;
		case 9:
			System.out.println("A");
			break;
		case 8:
			System.out.println("B");
			break;
		case 7:
			System.out.println("C");
			break;
		case 6:
			System.out.println("D");
			break;
		default:
			System.out.println("F");
			break;
		}
	}
	public void sum(){
		int i=1;
		int sum=0;
		do{
			if((i%2)!=0)//奇数
				sum+=i;
			i++;
		}while(i<=100);
		System.out.println(sum);
	}
	public void sum2(){
		int i=0;
		int sum=0;
		int j=0;
		while(j<=4){
			i=i*10+2;
			j++;
			sum+=i;
		}
		System.out.print(sum);
	}

	public void man(){
		for(int m=0;m<=36;m++){
			for(int w=0;w<=36;w++){
				for(int c=0;c<=36-m-w;c++){
					if(c+m+w==36 && m*4+w*3+c*0.5==36){
						System.out.println("������Ҫ��"+m);
						System.out.println("Ů����Ҫ��"+w);
						System.out.println("������Ҫ��"+c);
					}
					
				}
			}
		}
	}
	public void mod(){
		
		for(int a=0;a<=500;a++){
			if((a%3)==0 && (a%6)==0){
				System.out.println("���ܱ�3�������ܱ�6������500���ڵ����У�"+a);
			}
		}
	}
	public void tu(){
		for(int i=0;i<=4;i++){
			for(int z=3;z>=i;z--){
				System.out.print(" ");
			}
			for(int j=1;j<=2*i+1;j++){	
				
				System.out.print("*");
			}
			System.out.println();	
		}
		for(int i=3;i>=0;i--){
			for(int z=3;z>=i;z--){
				System.out.print(" ");
			}
			for(int j=1;j<=2*i+1;j++){
				System.out.print("*");
			}
			System.out.println();	
		}
	}
	public void year(int year){
		if(year%4==0 && year%100 !=0){
			System.out.println(year+"�����������");
		}else if(year%400==0){
			System.out.println(year+"�����������");
		}
		else{
			System.out.println(year+"�������ƽ��");
		}
	}
	public static void main(String[] args){
//		new liucheng5().max(5, 2);
//		new liucheng5().max(4, 2);
//		new liucheng5().score(90);
//		new liucheng5().sum();
//		new liucheng5().sum2();
//		new liucheng5().mod();
		new liucheng5().tu();
//		new liucheng5().year(2000);
		//new liucheng5().man();
	}
}
